package club.xinghe.entity;

/**
 * 说明:题库实体类
 *
 * @姚文斌
 * @create 2019-09-28 下午 4:51
 */
public class Tk {
    private int tId;//试题的唯一id，由它在题库中找到这道题
    private String tContent;//题的内容，由 # 分隔开题目和答案选项
    private String tAnswer;//选择题答案为A或B或C或D,判断题答案为0或1, 0表示设置的正确答案为错，1表示设置的正确答案为对。
    private Zy zy;//该题所属的专业
    private Style style;//该题所属的题型分类
    //构造器

    public Tk() {
    }

    public Tk(int tId, String tContent, String tAnswer) {
        this.tId = tId;
        this.tContent = tContent;
        this.tAnswer = tAnswer;
    }

    public Tk(int tId) {
        this.tId = tId;
    }

    public Tk(String tContent, String tAnswer, Zy zy, Style style) {
        this.tContent = tContent;
        this.tAnswer = tAnswer;
        this.zy = zy;
        this.style = style;
    }

    public Tk(int tId, String tContent, String tAnswer, Zy zy, Style style) {
        this.tId = tId;
        this.tContent = tContent;
        this.tAnswer = tAnswer;
        this.zy = zy;
        this.style = style;
    }

    //setget方法


    public int gettId() {
        return tId;
    }

    public void settId(int tId) {
        this.tId = tId;
    }

    public String gettContent() {
        return tContent;
    }

    public void settContent(String tContent) {
        this.tContent = tContent;
    }

    public String gettAnswer() {
        return tAnswer;
    }

    public void settAnswer(String tAnswer) {
        this.tAnswer = tAnswer;
    }

    public Zy getZy() {
        return zy;
    }

    public void setZy(Zy zy) {
        this.zy = zy;
    }

    public Style getStyle() {
        return style;
    }

    public void setStyle(Style style) {
        this.style = style;
    }
}
